package com.stox.model;


public class Country extends AbstractModel {
	private static final long serialVersionUID = 1L;
	
	private String flageImagePath;
	
	public Country() {
		
	}
	
	public Country(String text) {
		String[] tokens = text.split(",");
		setCode(tokens[0]);
		setName(tokens[1]);
		setFlageImagePath(tokens[2]);
	}

	@Override
	public String toString() {
		return getCode()+","+getName()+","+flageImagePath;
	}
	
	public String getFlageImagePath() {
		return flageImagePath;
	}

	public void setFlageImagePath(String flageImagePath) {
		this.flageImagePath = flageImagePath;
	}

}
